/**
 * 
 */
package java01;
import java.util.Scanner;
public class Java15 {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		while(in.hasNextLine()){
			int sum,n=0;
			int number = Integer.parseInt(in.nextLine());
			if(number<0) {number = -1*number;n=1;}
			String result = "";
			for (int i = number; i >= 1; i /= 2) {
				if (i % 2 == 0)
					sum = 0;
				else
					sum = 1;
				result = sum + result;
			}
			if(n==0)
			System.out.println(32-result.length());
			else System.out.println(0);
		}
	}
}
